var e = require('../../../../@babel/runtime/helpers/regeneratorRuntime'),
  r = require('../../../../@babel/runtime/helpers/objectSpread2'),
  t = require('../../../../@babel/runtime/helpers/asyncToGenerator'),
  n = getApp();
Component({
  properties: {
    goods_id: {
      value: '',
      type: String,
      observer: function (e) {
        e && this.init();
      },
    },
  },
  data: { buy_num_str: '', count: 0, items: [], show_more: 0 },
  methods: {
    init: function () {
      var o = this;
      return t(
        e().mark(function t() {
          var i;
          return e().wrap(function (e) {
            for (;;)
              switch ((e.prev = e.next)) {
                case 0:
                  return (
                    (e.next = 2),
                    n.$api.goods.buyRecord({
                      from_detail: 1,
                      goods_id: o.data.goods_id,
                      api_version: '2.0.0',
                    })
                  );
                case 2:
                  (i = e.sent),
                    o.setData(r({}, i)),
                    console.log(1111, 'buyersNew: ', i);
                case 5:
                case 'end':
                  return e.stop();
              }
          }, t);
        }),
      )();
    },
  },
});
